﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace xyPlot
{
    /// <summary>
    /// A simple DataValue item which is used to plot on the Graph
    /// if the Graph is not paused
    /// </summary>
    [DebuggerDisplay("{ToString()}")]
    public class GraphDataItem
    {
        #region Data
        private Double dataValue;
        private DateTime timeSampled;
        private long sampleSequenceNumber;
        #endregion

        #region Public Properties
        public Double DataValue
        {
            get { return dataValue; }
            set
            {
                dataValue = value;
            }
        }
 
        public DateTime TimeSampled
        {
            get { return timeSampled; }
            set
            {
                timeSampled = value;
            }
        }

        public long SampleSequenceNumber
        {
            get { return sampleSequenceNumber; }
            set
            {
                sampleSequenceNumber = value;
            }
        }
        #endregion

        #region Overrides
        public override string ToString()
        {
            return String.Format(
                "Value : {0} - Time Sampled : {1}, SampleSequence : {2}", 
                DataValue, TimeSampled, SampleSequenceNumber);
        }
        #endregion
    }
}
